<?php

if (!defined('BASEPATH'))
  exit('No direct script access allowed');


class Laud extends CI_Model {

	var $_table_name = 'laud';

	public function __construct() {
    	$this->load->database();
  	}

  	public function get_num($list_id){

  		$this->db->select('*');
  		$this->db->from($this->_table_name);

  		$this->db->where('list_id', $list_id);
  		$query = $this->db->get();

      return $query->num_rows();
  	}

    public function insert($insertData){

        $this->db->insert($this->_table_name, $insertData);
        return $this->db->insert_id();
    }


}

